<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<meta name="Robots" content="all" />
<meta name="Googlebot" content="all" />
<meta name="Author" content="内蒙古呼和浩特市第二中学网校" />
<meta name="Copyright" content="内蒙古呼和浩特市第二中学版权所有" />
<meta name="keywords" content="{$SEO['keyword']}">
<meta name="description" content="{$SEO['description']}">
<link href="{CSS_PATH}public.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}detail.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{JS_PATH}jquery.min.js"></script>
<script type="text/javascript" src="{JS_PATH}jquery.sGallery.js"></script>
<script type="text/javascript" src="{JS_PATH}search_common.js"></script>
<style type="text/css" >
             /*.picbig { width:420px; overflow:hidden; height:100px;}*/
	.picbig li {width:100px; height:100px; float:left; margin:0 2px; overflow:hidden;}
                /**/
                .photo_next,.photo_prev{height:30px;line-height:30px;width:90px;margin:5px 0;}
                .photo_next{float:right;}
                .photo_prev{float:left;}
                /*查看原图*/
                a.max{color:#00417b;line-height:25px;display:block;height:25px;margin:5px auto;font-weight:bold;width:100px;} 
                /*图片列表*/
	.list-pic {width:650px;margin:5px auto; padding:5px; background:none repeat scroll 0 0;overflow:hidden;}
	.list-pic .pre, .list-pic .pre-bnt {float:left;}
	.list-pic .pre, .list-pic .next {text-align:center;}
                .list-pic .pre .pre_a,.list-pic .next .pre_a{line-height:25px;margin:5px 0 0 0 0;}
	.list-pic .cont {float:left; height:100px; width:320px; display:block; overflow:hidden;}
	.list-pic .next, .list-pic .next-bnt {float:left;}
	 /*切换图片按钮*/
                .list-pic .pre-bnt,.list-pic .next-bnt{display:block;height:100px;line-height:100px;background:#ccc;width:46px;margin:0 5px;text-align:center;color:#c66105;background:#fff1d6;border:1px solid #ffdd9d;}
	.img-wrap {text-align:center;}
	.img-wrap img {width:100px; height:100px; vertical-align:middle;background:#FFF;}
	.tool {padding:3px; text-align:center;background:#e4f0f8;height:30px;line-height:30px;}
	.tool .up,.tool .next{margin:0 5px;}
	.tool .stat{margin:0 0 0 10px;color:#6f8e00;font-weight:bold;}
                .text{height:25px;line-height:25px;text-align:center;}
	.big-pic {text-align:center; vertical-align:middle;}
                .relevance{background:#FFF;width:685px;margin:0 auto;border-left:1px solid #b6d4de;border-right:1px solid #b6d4de;border-bottom:1px solid #b6d4de;}
                .relevance h5{height:30px;line-height:30px;background:url(http://www.2zwx.com/statics//images/2zwx/second/blue_bg.gif) repeat-x #fff;color:#00417b;font-weight:bold;}
                .relevance h5 span{background:url(http://www.2zwx.com/statics/images/2zwx/second/all_dot.gif) no-repeat 10px -176px;padding:0 0 0 35px;height:30px;line-height:30px;display:block;}
                .photo-list{width:630px;overflow:hidden;margin:0 auto;}
                .photo-list li{width:100px;float:left;margin:0 5px;}
                .photo-list li .imgtext{height:25px;line-height:25px;text-align:center;display:block;}
</style>
</head>
<body>
{template "content","header_common"}
<div id="page">
<div id="boardbox">	
	<div class="crumb">
		<b>当前位置：</b>
		<a href="{siteurl($siteid)}">首页</a><span> > </span>{catpos($catid)} 正文
	</div><!-- css class crumb end -->
	
	<div class="leftside">
		<span class="contentbox">
			<h1>{$title}</h1>
			
			<span class="infomation">
				<span>{$inputtime}</span>
				<span>&nbsp;&nbsp;&nbsp;来源：{$copyfrom}</span>
				<span>&nbsp;&nbsp;&nbsp;评论：<a href="#comment_iframe" id="comment">0</a></span>
			</span><!-- css class infomation end -->
			
			<span class="content">
			{if $allow_visitor==1}
				{$content}					
			{else}
				<center>
				<a href="{APP_PATH}index.php?m=content&c=readpoint&allow_visitor={$allow_visitor}">
				<font color="red">
					阅读此信息需要您支付 <b><i>{$readpoint} {if $paytype}元{else}点{/if}</i></b>，点击这里支付
				</font>
				</a>
				</center>
			{/if}
			</span><!-- css class content end -->
			
			<!--{if $pictureurls}-->
			<div class="big-pic" style="width:650px;margin:0 auto;">
				<div id="big-pic"></div>
				<div class="photo_prev">
					<a id="photoPrev" title="<上一页" class="btn_pphoto" target="_self" hidefocus="true" href="javascript:;" onclick="showpic('pre');"></a>
				</div>
				<div class="photo_next">
					<a id="photoNext" title="下一页>"class="btn_nphoto" target="_self" hidefocus="true" href="javascript:;" onclick="showpic('next')"></a>
				</div>
				<div class="text" id="picinfo"></div>
<a href="javascript:;" class="max" onclick="showpic('big');">查看原图</a>
			
				<div id="endSelect" style="display: none;">
					<div id="endSelClose" onclick="$('#endSelect').hide();"></div>
					<div class="bg"></div>
					<div class="E_Cont">
						<p>您已经浏览完所有图片</p>
						<p>
							<a id="rePlayBut" href="javascript:void(0)" onclick="showpic('next', 1);"></a>
							<a id="nextPicsBut" href="{$next_page[url]}"></a>
						</p>	
					</div>
				</div><!-- css class endSelect end -->		
			</div><!-- css class big-pic end -->
			
			<div class="tool">
				<a name="pic"></a>
				<a class="up" href="javascript:;" title="上一张" onclick="showpic('pre')"><span>上一张</span></a>
				<a class="next" href="javascript:;" onclick="showpic('next')" title="下一张"><span>下一张</span></a>
				<span class="stat" id="picnum"></span>
			</div>
			<!--{/if}-->
			
			<div class="list-pic">
				<div class="pre">
					<div class="img-wrap">
						<a href="{$previous_page[url]}"><img src="{thumb($previous_page[thumb], 100, 75)}" title="{$previous_page[title]}"></a>
					</div>
					<a class="pre_a" href="{$previous_page[url]}"><上一组</a>
				</div><!-- css class pre end -->
				<a href="javascript:;" onclick="showpic('pre')" class="pre-bnt"><span>上一张</span></a>
				
				<div class="cont" style="position:relative">
					<ul class="cont picbig" id="pictureurls"  style="position:absolute">
					{loop $pictureurls $pic_k $r}
					 <li><div class="img-wrap"><a href="javascript:;" hidefocus="true"><img src="{thumb($r[url], 100, 75)}" alt="{$r[alt]}" rel="{$r[url]}"/></a></div></li>
					{/loop}
					</ul>
				</div><!-- css class cont end -->
				<a href="javascript:;" onclick="showpic('next')" class="next-bnt"><span>下一张</span></a>
				
				<div class="next">
					<div class="img-wrap"><a href="{$next_page[url]}" title="{$next_page[title]}"><img src="{thumb($next_page[thumb], 100, 75)}"></a></div>
					<a class="pre_a" href="{$next_page[url]}">下一组></a>
				</div><!-- css class next end -->
				<div class="clear">&nbsp;</div>
								<div class="clear">&nbsp;</div>
			</div><!-- css class list-pic end -->
			
			<div class="bk10"></div>
			<div class="relevance">
				<h5><span>相关图集</span></h5>
				{pc:content action="relation" relation="$relation" id="$id" catid="$catid" num="6" keywords="$rs[keywords]"}
				<ul class="photo-list">
					{loop $data $r}
					<li>
						<div class="img-wrap">
							<a href="{$r[url]}"><img src="{thumb($r[thumb],100,90)}" width="100" height="86"/></a>
						</div>
						<a class="imgtext" href="{$r[url]}" title="{$r[title]}">{str_cut($r[title],28,'')}</a>
					</li>
					{/loop}
				</ul>
				{/pc}
			</div><!-- css class relevance end -->
			<div class="clear">&nbsp;</div>
			<div id="load_pic" style="display:none;" rel="{IMG_PATH}msg_img/loading_d.gif"></div>
			<div class="clear">&nbsp;</div>
		</span><!-- css class contentbox end -->
		
		<div class="Article-Tool" style="margin:5px 0;">
			分享到：
			<script type="text/javascript">document.write('<a href="http://v.t.sina.com.cn/share/share.php?url='+encodeURIComponent(location.href)+'&appkey=3172366919&title='+encodeURIComponent('{new_addslashes($title)}')+'" title="分享到新浪微博" class="t1" target="_blank">新浪微博</a>');</script>
			<script type="text/javascript">document.write('<a href="http://www.douban.com/recommend/?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent('{new_addslashes($title)}')+'" title="分享到豆瓣" class="t2" target="_blank">豆瓣</a>');</script>
			<script type="text/javascript">document.write('<a href="http://share.renren.com/share/buttonshare.do?link='+encodeURIComponent(location.href)+'&title='+encodeURIComponent('{new_addslashes($title)}')+'" title="分享到人人" class="t3" target="_blank">人人</a>');</script>
			<script type="text/javascript">document.write('<a href="http://www.kaixin001.com/repaste/share.php?rtitle='+encodeURIComponent('{new_addslashes($title)}')+'&rurl='+encodeURIComponent(location.href)+'&rcontent=" title="分享到开心网" class="t4" target="_blank">开心网</a>');</script>
			<script type="text/javascript">document.write('<a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(location.href)+'" title="分享到QQ空间" class="t5" target="_blank">QQ空间</a>');</script>
			<span id='favorite'><a href="javascript:;" onclick="add_favorite('{$title}');" class="t6">收藏</a></span>
		</div><!-- css class Article-Tool end -->
		
		<div class="bk10" style="margin:3px 0;"></div>
		{if $allow_comment}
		<iframe src="{APP_PATH}index.php?m=comment&c=index&a=init&commentid={id_encode("content_$catid",$id,$siteid)}&iframe=1" width="100%" height="100%" id="comment_iframe" frameborder="0" scrolling="no"></iframe>
		{/if}
		
		<div class="clear">&nbsp;</div>
	</div><!-- css class leftside end -->
	
	<div class="rightside">
		<span class="hotboard">
			<h3><span class="sp_r"></span><span class="sp_l"></span><span class="title">频道总排行</span></h3>
			<span class="outerbox">
				<ul>
				{pc:content  action="hits" catid="$catid" num="10" order="views DESC" cache="3600"}
					{loop $data $r}
						<li><a href="{$r[url]}" target="_blank" title="{$r[title]}">{str_cut($r[title], 28, '')}</a></li>
					{/loop}
				{/pc}
				</ul>
			</span>
		</span><!-- css class hotboard end -->
		
		<span class="seboard">
			<h3><span class="sp_r"></span><span class="sp_l"></span><span class="title">频道本月排行</span></h3>
			<span class="outerbox">
				<ul>
				{pc:content action="hits" catid="$catid" num="10" order="monthviews DESC" cache="3600"}
					{loop $data $r}
					<li><span>{number_format($r[monthviews])}</span><a href="{$r[url]}"{title_style($r[style])} class="title" title="{$r[title]}">{str_cut($r[title],56,'...')}</a></li>
					{/loop}
				{/pc}
				</ul>
			</span>
		</span><!-- css class seboard end -->
		
		<div class="clear">&nbsp;</div>
	</div><!-- css class rightside end -->
	
	<div class="clear">&nbsp;</div>
</div><!-- css id boardbox end -->

<script language="JavaScript">
<!--
	function add_favorite(title) {
		$.getJSON('{APP_PATH}api.php?op=add_favorite&title='+encodeURIComponent(title)+'&url='+encodeURIComponent(location.href)+'&'+Math.random()+'&callback=?', function(data){
			if(data.status==1)	{
				$("#favorite").html('收藏成功');
			} else {
				alert('请登录');
			}
		});
	}
//-->
</script>
<script type="text/javascript" src="{JS_PATH}show_picture.js"></script>
<script type="text/javascript" src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}"></script>
{template "content","footer_cat"}